package com.shyroke.mapper;

import org.apache.ibatis.annotations.Param;

import com.shyroke.entity.readRecord;

public interface readRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(readRecord record);

    int insertSelective(readRecord record);

    readRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(readRecord record);

    int updateByPrimaryKey(readRecord record);

	void deleteByOld(@Param("userId")Integer userId, @Param("xiaoshuoId")Integer xiaoshuoId);

	readRecord selectByXiaoshuoIdAndUserId(@Param("xiaoshuoId")Integer xiaoshuoId, @Param("userId")Integer userId);
}